<!-- Main navigation -->
<!-- Use the background color class in anchor tag for colorful menu -->
<div id="ddtopmenubar" class="mattblackmenu">
	<ul>
		<?php foreach ($this->container as $page): ?>
			<?php if($page->isVisible() && $this->navigation()->accept($page)): ?>
				<?php if(!$page->hasPages()): ?>
				<li><a href="<?php echo $page->getHref() ?>" class="bblue"><?php echo $this->translate($page->getLabel()) ?></a></li>
				<?php else: ?>
					<!-- Main navigation -->
	                <li>
	                	<a href="#" rel="ddsubmenu2" class="bblue"><?php echo $this->translate($page->getLabel()) ?></a><!-- Sub Navigation -->
	                    <ul id="ddsubmenu2" class="ddsubmenustyle">
	                    	<?php foreach($page->getPages() as $child): ?>
	                    		<?php if($child->isVisible() && $this->navigation()->accept($child)): ?>
	                       		<li><a href="<?php echo $child->getHref() ?>"><?php echo $this->translate($child->getLabel()) ?></a></li>
	                       		<?php endif ?>
	                		<?php endforeach ?>
	                    </ul>
	                </li>
				<?php endif ?>
			<?php endif; ?>
		<?php endforeach ?>
	</ul>
</div>